package pack0601;

//运算符----关系运算符
public class DemoB {

    public static void main(String[] args) {
        int a =(int)(Math.random() * 100+1);
        int b =(int)(Math.random() * 100+1);
        System.out.println("a的值是: "+a);
        System.out.println(b);
        boolean c1 =a>b;
        boolean c2 =a>=b;
        boolean c3 =a<b;
        boolean c4 =a<=b;
        boolean c5 =a!=b;
        boolean c6 =a==b;//注意:java比较相等是==号
        System.out.println(c1);
        System.out.println(c2);
        System.out.println(c3);
        System.out.println(c4);
        System.out.println(c5);
        System.out.println(c6);


    }
}
